package day240317.e1;

public class PlayingCade {
    //state
    private String suit;
    private String number;


    //behavior
    public void show() {
        System.out.println("花色：" + suit + " 点数：" + number);
    }

    public void getSuit(String suit) {
        if (suit == "♥" || suit == "♦" || suit == "♠" || suit == "♣")
            this.suit = suit;
    }

    public void getNumber(String number) {
            this.number = number;
    }

}
